package wiki.xsx.core.bytecode.model;

import lombok.Data;

import java.util.List;

/**
 * 参数注解
 *
 * @author xsx
 * @date 2023/2/1
 * @since 1.8
 * <p>
 * Copyright (c) 2023 xsx All Rights Reserved.
 * x-easypdf is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 * http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 * </p>
 */
@Data
public class ParameterAnnotations {

    /**
     * 参数索引（从0开始）
     */
    private Integer index;
    /**
     * 注解列表
     */
    private List<Annotations> annotations;

    /**
     * 有参构造
     *
     * @param index       参数索引
     * @param annotations 注解列表
     */
    public ParameterAnnotations(Integer index, List<Annotations> annotations) {
        this.index = index;
        this.annotations = annotations;
    }
}
